-- GENERATED SPELL FOR [Young Goretusk] --


function spell0_454(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_454', 620, 1)
end

function spell1_454(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_454', 0, 1)
end

function spell2_454(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(35291,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_454', 0, 1)
end

function spell3_454(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_454', 0, 1)
end

function spell4_454(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_454', 3000, 1)
end

function Sorts_454(pUnit, Event)
local choix_sorts_454 = math.random(0, 4)
if choix_sorts_454 == 0 then
pUnit:RegisterEvent('spell0_454', 1, 1)
end
if choix_sorts_454 == 1 then
pUnit:RegisterEvent('spell1_454', 1, 1)
end
if choix_sorts_454 == 2 then
pUnit:RegisterEvent('spell2_454', 1, 1)
end
if choix_sorts_454 == 3 then
pUnit:RegisterEvent('spell3_454', 1, 1)
end
if choix_sorts_454 == 4 then
pUnit:RegisterEvent('spell4_454', 1, 1)
end
end

function mob454_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_454', math.random(1500, 3000), 1)
end

function mob454_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob454_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob454_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(454, 1, 'mob454_Action')
RegisterUnitEvent(454, 2, 'mob454_Leave')
RegisterUnitEvent(454, 3, 'mob454_Kill')
RegisterUnitEvent(454, 4, 'mob454_Die')
